package com.hjh.java.springboot.aspect.service.impl;

import com.hjh.java.springboot.aspect.bean.dto.OrderDto;
import com.hjh.java.springboot.aspect.service.IOrderService;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

@Service
public class OrderServiceImpl implements IOrderService {


    @Override
    public List<OrderDto> queryOrder() {
        List<OrderDto> orderList = new ArrayList<>();

        for (int i = 0; i < 10; i++) {
            OrderDto dto = new OrderDto();
            dto.setOrderId("" + i);
            dto.setOrderBillNo("biillNo" + i);

            orderList.add(dto);
        }

        return orderList;
    }
}
